package com.ruoyi.foreign_language.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.foreign_language.mapper.TbForeignLanguageMapper;
import com.ruoyi.foreign_language.domain.TbForeignLanguage;
import com.ruoyi.foreign_language.service.ITbForeignLanguageService;

/**
 * 外语语种信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class TbForeignLanguageServiceImpl implements ITbForeignLanguageService 
{
    @Autowired
    private TbForeignLanguageMapper tbForeignLanguageMapper;

    /**
     * 查询外语语种信息
     * 
     * @param id 外语语种信息主键
     * @return 外语语种信息
     */
    @Override
    public TbForeignLanguage selectTbForeignLanguageById(Long id)
    {
        return tbForeignLanguageMapper.selectTbForeignLanguageById(id);
    }

    /**
     * 查询外语语种信息列表
     * 
     * @param tbForeignLanguage 外语语种信息
     * @return 外语语种信息
     */
    @Override
    public List<TbForeignLanguage> selectTbForeignLanguageList(TbForeignLanguage tbForeignLanguage)
    {
        return tbForeignLanguageMapper.selectTbForeignLanguageList(tbForeignLanguage);
    }

    /**
     * 新增外语语种信息
     * 
     * @param tbForeignLanguage 外语语种信息
     * @return 结果
     */
    @Override
    public int insertTbForeignLanguage(TbForeignLanguage tbForeignLanguage)
    {
        return tbForeignLanguageMapper.insertTbForeignLanguage(tbForeignLanguage);
    }

    /**
     * 修改外语语种信息
     * 
     * @param tbForeignLanguage 外语语种信息
     * @return 结果
     */
    @Override
    public int updateTbForeignLanguage(TbForeignLanguage tbForeignLanguage)
    {
        return tbForeignLanguageMapper.updateTbForeignLanguage(tbForeignLanguage);
    }

    /**
     * 批量删除外语语种信息
     * 
     * @param ids 需要删除的外语语种信息主键
     * @return 结果
     */
    @Override
    public int deleteTbForeignLanguageByIds(Long[] ids)
    {
        return tbForeignLanguageMapper.deleteTbForeignLanguageByIds(ids);
    }

    /**
     * 删除外语语种信息信息
     * 
     * @param id 外语语种信息主键
     * @return 结果
     */
    @Override
    public int deleteTbForeignLanguageById(Long id)
    {
        return tbForeignLanguageMapper.deleteTbForeignLanguageById(id);
    }
}
